package com.cnunicom.common.utils;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

import java.io.IOException;

/**
 * @Author: dingziyuan
 * @Date: 2019/12/15/015 16:21
 * @Description: *
 */
public class JsonLongSerializer extends JsonSerializer<Long> {

    @Override
    public void serialize(Long aLong, JsonGenerator generator, SerializerProvider provider) throws IOException {
        generator.writeString(Long.toString(aLong));
    }
}
